package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.IflightRefundMapper;
import com.ktgj.flight.domain.IflightRefund;
import com.ktgj.flight.service.IIflightRefundService;

/**
 * 国际机票退票订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-31
 */
@Service
public class IflightRefundServiceImpl implements IIflightRefundService 
{
    @Autowired
    private IflightRefundMapper iflightRefundMapper;

    /**
     * 查询国际机票退票订单
     * 
     * @param refundid 国际机票退票订单ID
     * @return 国际机票退票订单
     */
    @Override
    public IflightRefund selectIflightRefundById(Long refundid)
    {
        return iflightRefundMapper.selectIflightRefundById(refundid);
    }

    /**
     * 查询国际机票退票订单列表
     * 
     * @param iflightRefund 国际机票退票订单
     * @return 国际机票退票订单
     */
    @Override
    public List<IflightRefund> selectIflightRefundList(IflightRefund iflightRefund)
    {
        return iflightRefundMapper.selectIflightRefundList(iflightRefund);
    }

    /**
     * 新增国际机票退票订单
     * 
     * @param iflightRefund 国际机票退票订单
     * @return 结果
     */
    @Override
    public int insertIflightRefund(IflightRefund iflightRefund)
    {
        return iflightRefundMapper.insertIflightRefund(iflightRefund);
    }

    /**
     * 修改国际机票退票订单
     * 
     * @param iflightRefund 国际机票退票订单
     * @return 结果
     */
    @Override
    public int updateIflightRefund(IflightRefund iflightRefund)
    {
        return iflightRefundMapper.updateIflightRefund(iflightRefund);
    }

    /**
     * 批量删除国际机票退票订单
     * 
     * @param refundids 需要删除的国际机票退票订单ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundByIds(Long[] refundids)
    {
        return iflightRefundMapper.deleteIflightRefundByIds(refundids);
    }

    /**
     * 删除国际机票退票订单信息
     * 
     * @param refundid 国际机票退票订单ID
     * @return 结果
     */
    @Override
    public int deleteIflightRefundById(Long refundid)
    {
        return iflightRefundMapper.deleteIflightRefundById(refundid);
    }
}
